$OpenBSD: patch-Source_cmake_WebKitCommon_cmake,v 1.2 2017/03/29 13:25:53 ajacoutot Exp $
--- Source/cmake/WebKitCommon.cmake.orig	Mon Feb 20 17:20:18 2017
+++ Source/cmake/WebKitCommon.cmake	Sun Mar 26 13:55:19 2017
@@ -24,9 +24,9 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
     # We cannot check for RUBY_FOUND because it is set only when the full package is installed and
     # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro
     # for finding only the Ruby interpreter.
-    find_package(Ruby 1.9)
-    if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 1.9)
-        message(FATAL_ERROR "Ruby 1.9 or higher is required.")
+    find_package(Ruby ${MODRUBY_LIBREV})
+    if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS ${MODRUBY_LIBREV})
+        message(FATAL_ERROR "Ruby ${MODRUBY_LIBREV} or higher is required.")
     endif ()
 
     # -----------------------------------------------------------------------------
